a = 1
a = a + 1
print(a) #2

a = 1
a += 1
print(a) #2

# a = 10
# b = 20
# a, b = b, a
# print(a, b) #20 10

# print(10 > 20 and 10 / 0 == 1) #False
# print(10 < 20 or 10 / 0 == 1) #True


# a = 10
# b = 20
# c = 30
# print(a < b and b < c) #True
# print(a < b < c) #True
# print(a < b and b > c) #False
# print(a > b or b > c) #False
# print(a < b or b > c) #True
# print(not a < b) #False
# print(not a > b) #True




# a = 0.1
# b = 0.2
# c = 0.3
# print(-0.000001 < (a + b - c) < 0.000001) #True

# print(a + b == c) #False
# print(a + b) #0.30000000000000004



# a = 'hello'
# b = 'world'
# print(a > b) #False
# print(a < b) #True
# print(a == b) #False
# print(a != b) #True
# print(a >= b) #False
# print(a <= b) #True





# print(16 // 5) #3


# print(10 / 0)
a = 4
print(a ** 2) #16
print(a ** 0.5) #2.0

# a = input('请输入一个数字：')
# b = input('请输入一个数字：')
#
# a = int(a)
# b = int(b)
#
# c = a + b
# print(f'求和结果为{c}') #30


# print(a) #10
# print(f'a = {a}') #a = 10


# a = True
# print(type(a)) #<class 'bool'>
# b = False
# print(type(b)) #<class 'bool'>

# a = 10
# print(type(a)) #<class 'int'>
#
# a = 0.5
# print(type(a)) #<class 'float'>
#
# a = "hello"
# print(type(a)) #<class 'str'>
#
# a = 'hello'
# b = 'world'
# print(a + b) #helloworld
# #print(len(a)) #5